# -*- coding:utf-8 -*-
import web, models
from baseHandler import BaseHandler
from utils.decorator import render

class Companys(BaseHandler):
    @render(None, 'json')
    def POST(self):
        self.admin_requried()
        name = web.input().get('name')
        _type = web.input().get('type')
        models.Company.addCompany(name, _type)


